<?php

include("core/cfg.php");

if (in_array(substr($_SERVER['REQUEST_URI'], -3), array('png', 'jpg', 'gif'))) {	
	header("Location: /templates/site/img/404.gif");
	exit;
}
else {
	$e = new Error404;
}

?>
